package com.yonyou.pmclouds.workstartreport.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.project.entity.ProjectVO;
import com.yonyou.pmclouds.workquality.entity.WorkqualityDetailVO;
import com.yonyou.pmclouds.workquality.entity.WorkqualityVO;
import com.yonyou.pmclouds.workstartreport.entity.WorkStartVO;
import org.apache.ibatis.annotations.Param;

public interface WorkStartMapper extends BaseMapper<WorkStartVO> {
    /**
     * 通过项目ID查询所有条件
     */
    WorkStartVO[] selectAllCondition(@Param("projectId") String projectId);

    /**
     * 通过报告ID查询开工报告
     */
    WorkStartVO selectReport(@Param("reportId")String reportId);

    /**
     * 根据条件查询开工报告
     */
    WorkStartVO[] queryByCondition(@Param("pkProjects")String[] pkProjects,
                                   @Param("pkorgs") String[] pkorgs,
                                   @Param("pkEnterprises") String[] pkEnterprises,
                                   @Param("tenantId") String tenantId,
                                   @Param("creators") String[] creators,
                                   @Param("startDate") String startDate,
                                   @Param("endDate") String endDate,
                                   @Param("billStatus") int[] billStatus,
                                   @Param("start") int start,
                                   @Param("size") int size);

    //根据条件查询数量
    int countByCondition(@Param("pkProjects")String[] pkProjects,
                         @Param("pkorgs") String[] pkorgs,
                         @Param("pkEnterprises") String[] pkEnterprises,
                         @Param("tenantId") String tenantId,
                         @Param("creators") String[] creators,
                         @Param("startDate") String startDate,
                         @Param("endDate") String endDate,
                         @Param("billStatus") int[] billStatus);



}
